package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.Movie;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HomepageMapper extends BaseMapper {
    @Select("select * from movie where movie_status =1 ")
    public List<Movie> now();

    @Select("select * from movie where movie_status =2 ")
    public List<Movie> pass();

    @Select("select * from movie ORDER BY movie_num DESC ")
    public List<Movie> num();
}
